//
//  Fraction.h
//  02-ClassAndObject
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
@property(nonatomic,assign)NSInteger numer;
@property(nonatomic,assign)NSInteger denom;

- (instancetype)initWithNumer:(NSInteger)numer withDenom:(NSInteger)denom;

- (Fraction *)addFra1:(Fraction *)fra2;
- (NSInteger)maxCommonDivisorWithNum1:(NSInteger)num1 withNum2:(NSInteger)num2;
- (Fraction *)subFra:(Fraction *)fra2;
- (Fraction *)mulFra:(Fraction *)fra2;
- (Fraction *)divFra:(Fraction *)fra2;
- (void)reduce;
- (void)compareFra:(Fraction *)fra2;
- (NSString *)description;
@end
